package com.mzba.place.utils;


/**
 * 
 * @author 06peng
 * 
 */
public class UrlConfig {

	public static final int share_platform_sina = 1;
	public static final int share_platform_qq = 2;
	public static final int share_platform_weixin_friend = 3;
	public static final int share_platfor_weixin_contact = 4;

	public static final String redirect_url = "http://www.zhianleida.com";
	/**
	 * 新浪微博
	 */
	public static final String sina_appkey = "3865230413";
	public static final String sina_appsecret = "272a7dda612cff8046deb859b80ae85c";

	//新支持scope 支持传入多个scope权限，用逗号分隔
	public static final String SCOPE = "email,direct_messages_read,direct_messages_write," +
			"friendships_groups_read,friendships_groups_write,statuses_to_me_read," +
				"follow_app_official_microblog";
	
	
	/**
	 * 微信
	 */
	public static final String weixin_appid = "wxc698945d83a81f60";
	public static final String weixin_appkey = "7f91ecdd131798b617782c28816a7ec4";
	
	/**
	 * qq空间
	 */
	public static final String qq_appid = "100431187";
	public static final String qq_appkey = "4a381dd4850d13a7801bd4326a02c4cc";
	
	/**
	 * 腾讯微博appid
	 */
	public static final String tx_wb_appId = "801383427";
	public static final String tx_wb_appsecret = "7dbf818bef0c390d0586811463f18100";
	/**
	 * +++++++++++++++++++++++++++++++++++接口路径++++++++++++++++++++++++++++++++++
	 * ++++
	 */
	/**
	 * 用户注册
	 */
	public static final String register = "http://www.zhianleida.com/ios";

	/**
	 * 用户更新 完善用户信息，如昵称、头像（图片文件）
	 */
	public static final String update = "http://www.zhianleida.com/update";
	/**
	 * 获取上报信息 或者 创建上报信息（http请求方式不一样）
	 */
	public static final String reports = "http://www.zhianleida.com/reports";

	/**
	 * 获取上报信息详情
	 * 
	 * @param id
	 * @return
	 */
	public static String reportDetail(String id) {
		return "http://www.zhianleida.com/reports/" + id;
	}

	/**
	 * 评论上信息
	 * 
	 * @param id
	 * @return
	 */
	public static String comment(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/comment";
	}

	/**
	 * 赞信息
	 * 
	 * @param id
	 * @return
	 */
	public static String vote(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/vote";
	}
	
	/**
	 * 取消赞
	 * @param id
	 * @return
	 */
	public static String un_vote(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/unvote";
	}

	/**
	 * 举报信息
	 * 
	 * @param id
	 * @return
	 */
	public static String inform(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/inform";
	}

	/**
	 * 收藏信息
	 * 
	 * @param id
	 * @return
	 */
	public static String star(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/star";
	}
	
	/**
	 * 取消收藏
	 * @param id
	 * @return
	 */
	public static String un_star(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/unstar";
	}
	
	/**
	 * 我的上报
	 */
	public static final String my_reports = "http://www.zhianleida.com/my_reports";
	
	/**
	 * 收藏的上报
	 */
	public static final String star_reports = "http://www.zhianleida.com/star_reports";
	
	/**
	 * 我赞同的上报
	 */
	public static final String vote_reports = "http://www.zhianleida.com/vote_reports";
	/**
	 * 我评论的
	 */
	public static final String my_comments = "http://www.zhianleida.com/commt_reports";
	
	/**
	 * 检查更新
	 */
	public static final String check_update = "http://www.zhianleida.com/check_update";
	
	/**
	 * 设置（更新）警示区域
	 */
	public static final String cautions = "http://www.zhianleida.com/cautions";
	
	/**
	 * 纠错
	 * @param id
	 * @return
	 */
	public static String refine(String id) {
		return "http://www.zhianleida.com/reports/" + id + "/refine";
	}
	
	/**
	 * 获取安全卡（最近一次生成的安全卡）
	 */
	public static final String safe_cards_recent = "http://www.zhianleida.com/safe_cards/recent";
	
	/**
	 * 创建安全卡
	 */
	public static final String safe_cards = "http://www.zhianleida.com/safe_cards";
	
	public static final String safe_card_share = "http://www.zhianleida.com/safe_cards/share?key=";
	
	/**
	 * 通知未读
	 */
	public static final String notification_unread = "http://www.zhianleida.com/notifications/unread";
	/**
	 * 所有通知
	 */
	public static final String notificationa_all ="http://www.zhianleida.com/notifications";
	
	/**
	 * 所有通知设置成已读
	 */
	public static final String notificationa_all_read ="http://www.zhianleida.com/notifications/set_all_read";
	/**
	 * 一条通知已读
	 */
	public static final String notificationa_read_one ="http://www.zhianleida.com/notifications/";
	
	/**
	 * 安全卡详情
	 */
	public static final String safe_cards_detail = "http://www.zhianleida.com/safe_cards/";
	
	/**
	 * 意见反馈
	 */
	public static final String feedbacks = "http://www.zhianleida.com/feedbacks";
	
	/**
	 * 登录
	 */
	public static final String sign_in = "http://www.zhianleida.com/users/sign_in.json";
	
	/**
	 * 注销
	 */
	public static final String sign_out = "http://www.zhianleida.com/users/sign_out.json";
	
}
